﻿@using InnovaApp.Layers.ResourcesLayer.Properties
@model InnovaApp.Portals.MVC4Portal.Models.DropDownListModel
@section featured {
	<section class="featured">
		<div class="content-wrapper">
			<hgroup class="title">
				<h1>@Model._PageTitle<br />
				</h1>
				<h2>@Model._PageMessage</h2>
			</hgroup>
			<p>
				@Resources.View_Sample_SingleControl_DropDownList_Help
			</p>
		</div>
	</section>
}
@using (Ajax.BeginForm(new AjaxOptions() { HttpMethod = "Post", OnSuccess = "$.fn.MainAjaxSuccess", OnFailure = "$.fn.MainAjaxFailure" }))
{
	<section>
		<fieldset class="centerMargin25 ui-widget ui-widget-content ui-corner-all padding15">
			<legend></legend>
			@Resources.View_Sample_SingleControl_DropDownList_SelectAnItem
			@Html.DropDownListFor(m => m.MyChoice, Model.MyList, new { @Id = "ddlSample", @class = "dropDown rounded5" })
			<div id="divDescription">
			</div>
		</fieldset>
	</section>
}
@if (Model.InvolvedCode != null)
{ 
	<section>
		<span class="involvedCode">@Resources.Views_All_InvolvedCode</span>
		<div id="divInvolvedCode">
			@Html.Partial("_InvolvedCode", Model.InvolvedCode)
		</div>
	</section>
}
